package com.itheima.stock.mapper;

import com.itheima.stock.pojo.domain.StockBlockDomain;
import com.itheima.stock.pojo.domain.StockUpdownDomain;
import com.itheima.stock.pojo.entity.StockBlockRtInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 股票板块详情信息表 Mapper 接口
 * </p>
 *
 * @author 哈纳桑
 * @since 2024-06-02
 */
public interface StockBlockRtInfoMapper extends BaseMapper<StockBlockRtInfo> {

    /**
     *
     * @param curTime
     * @return
     */
    List<StockBlockDomain> getsectorAllLimit(@Param("curTime") Date curTime);


    /**
     * 批量保存板块信息
     * @param list
     * @return
     */
    boolean saveBatch(@Param("list") List<StockBlockRtInfo> list);

    /**
     * 根据时间查询板块信息（分库分表测试）
     * @param curDate
     * @return
     */
    List<StockBlockDomain> findBlockInfoByTimeLimit(Date curDate);
}
